package com.sduonline.isdapp.model;

public class Article {

    private int id;
	private int web;// web id
	private int category;// 网站二级分类
	private String title;
	private String content;
	private String time;
	private String baseUrl;
	private String imgs;
	private  int atype;//文章的类型，表明是资讯还是通知 

	// private String editor;
	// private String writer;
	// private String reporter;

	

	public int getAtype() {
		return atype;
	}

	public void setAtype(int atype) {
		this.atype = atype;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getWeb() {
		return web;
	}

	public void setWeb(int web) {
		this.web = web;
	}

	public int getCategory() {
		return category;
	}

	public void setCategory(int category) {
		this.category = category;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getBaseUrl() {
		return baseUrl;
	}

	public void setBaseUrl(String baseUrl) {
		this.baseUrl = baseUrl;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImgs() {
		return imgs;
	}

	public void setImgs(String imgs) {
		this.imgs = imgs;
	}

	@Override
	public boolean equals(Object obj) {
		Article u = (Article) obj;
    	return (this.baseUrl == null ? u.baseUrl == null : this.baseUrl.equals(u.baseUrl))
    			&& (this.category == u.category)
				&& (this.content == null ? u.content == null : this.content.equals(u.content) )
				&& (this.id == u.id)
				&& (this.imgs == null ? u.imgs == null : this.imgs.equals(u.imgs) )
				&& (this.time == null ? u.time == null: this.time.equals(u.time) )
				&& (this.title == null ? u.title == null : this.title.equals(u.title))
				&& (this.web == u.web)
    			&&(this.atype==u.atype);
	}
}